package com.gzgy.ustore.api.web.controller.webservice;

import com.gzgy.ustore.api.common.exception.BaseAPIException;
import com.gzgy.ustore.api.common.exception.ExceptionCodeStatusEnum;
import com.gzgy.ustore.api.common.util.Constant;
import com.gzgy.ustore.api.common.util.PushUtil;
import com.gzgy.ustore.api.util.ResultUtil;
import com.gzgy.ustore.api.model.ApkInfo;
import com.gzgy.ustore.api.util.ApkUtil;
import com.gzgy.ustore.api.util.IconUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by yimi on 2017/6/20.
 */
@Controller
public class TestController {

    @RequestMapping(value = "test1")
    public String test(ModelMap modelMap){

        String result =PushUtil.pushAllAndroid(Constant.accessId,Constant.secretKey,"这是一条信息","发送所有设备测试");
        modelMap.put("message",ResultUtil.getResultJson(result));

        return "message.json";
    }
}
